package pers.xukai.common.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import pers.xukai.common.utils.Assert;

import java.io.Serializable;

@Data
@ApiModel("用户注册Vo")
public class RegisterUserVo implements Serializable {

    private static final long serialVersionUID = 530293901766742570L;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("手机号码")
    private String phoneNum;

    @ApiModelProperty("微信")
    private String wechat;

    @ApiModelProperty("email")
    private String email;

    @ApiModelProperty("是否启用")
    private Boolean enable;

    @ApiModelProperty("是否锁定")
    private Boolean lock;

    public void check(){
        Assert.isNotNull(userName,"用户名")
                .and(password,"密码");
//                .and(enable,"账户是否启用")
//                .and(lock,"账户是否锁定");
    }
}
